The parameter next is not used and could be removed.
This check looks for parameters in functions that are not used in the function
body and are not followed by other parameters which are used inside the function.
Loading history...
6
const callback = (err, html) => {
7
if (err) {
8
throw err
9
}
10
res.setHeader('Content-Type', 'text/html')
11
res.writeHead(200)
12
res.end(html)
13
}
14
return function (view, state = {}, userCallback) {
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.